<!DOCTYPE html>
<html lang="es">
  <head>
        <meta charset="utf-8">
        <title>TP2 Simulación</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- Bootstrap -->
        <link href="../vendors/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link href="../vendors/bootstrap/css/bootstrap-responsive.css" rel="stylesheet" media="screen">
        <link href="css/main.css" rel="stylesheet" media="screen">
    </head>
    <body>
        <div style="padding: 10px;">
            <h1>TP2 - Simulación!</h1>
            <h2>Basado en una muestra de accesos a una base de datos en un intervalo de 10 minutos, el tamaño de la muestra es de 10504.</h2>
            <!--<ul class="nav nav-tabs">
                <li><a href="#tab-uniforme" data-toggle="tab">Uniforme</a></li>
                <li><a href="#tab-exponencial" data-toggle="tab">Exponencial</a></li>
                <li><a href="#tab-normal" data-toggle="tab">Normal</a></li>
                <li><a href="#tab-poisson" data-toggle="tab">Poison</a></li>
            </ul>
            
            <div class="tab-content">
                <div class="tab-pane active" id="tab-uniforme">
                    <form id="form-uniforme">
                        <div class="row">
                             <div class="span3">   
                                <label for="uniforme[num-rnd]" class="span1">N:</label>
                                <input class="tooltip-title span2" type="text" value="10000" title="Cantidad de numeros RND a generar" name="uniforme[num-rnd]">
                             </div>
                            <div class="span3">   
                                <label for="uniforme[int]" class="span1">Int:</label>
                                <input class="tooltip-title span2" type="text" value="20" title="Cantidad de intervalos" name="uniforme[int]">
                             </div>
                        </div>
                        <div class="row">
                            <div class="span3">
                                <label for="uniforme[a]" class="span1">a:</label>
                                <input class="tooltip-title span2" type="text" value="40" title="Desde" name="uniforme[a]">
                            </div>
                            <div class="span3">
                                <label for="uniforme[b]" class="span1">b:</label>
                                <input class="numeric tooltip-title span2" type="text" value="50" title="Hasta" name="uniforme[b]">
                            </div>
                        </div>
                        <div class="row">
                            <div class="span5">
                                <button  type="button" class="btn btn-primary" id="form-uniforme-btn">Generar</button>
                            </div>
                        </div>
                    </form>
                    
                </div>
                <div class="tab-pane" id="tab-exponencial">
                    <form id="form-exponencial">
                        <div class="row">
                             <div class="span3">   
                                <label for="exponencial[num-rnd]" class="span1">N:</label>
                                <input class="tooltip-title span2" type="text" value="10000" title="Cantidad de numeros RND a generar" name="exponencial[num-rnd]">
                             </div>
                            <div class="span3">   
                                <label for="exponencial[int]" class="span1">Int:</label>
                                <input class="tooltip-title span2" type="text" value="20" title="Cantidad de intervalos" name="exponencial[int]">
                             </div>
                        </div>
                        <div class="row">
                            <div class="span3">
                                <label for="exponencial[lamda]" class="span1">λ:</label>
                                <input class="tooltip-title span2" type="text" value="2" title="Lamda=1/Media" name="exponencial[lamda]">
                            </div>
                        </div>
                        <div class="row">
                            <div class="span5">
                                <button  type="button" class="btn btn-primary" id="form-exponencial-btn">Generar</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="tab-pane" id="tab-normal">...</div>
                <div class="tab-pane" id="tab-poisson">...</div>
            </div>-->
            <div id="grafico">
            </div>
            <label id="labelTiempo"></label>
            <p>Los datos son Fechas en milisegundos(contados a partir de la medianoche del 1 de Enero de 1970, ver mas en <a href="http://www.w3schools.com/jsref/jsref_parse.asp">http://www.w3schools.com/jsref/jsref_parse.asp</a>):</p>
			<br>
			<table id="tablaOcurrencias">
				<thead>
					<tr>
						<th>Intervalo</th>
						<th>Frecuencia</th>
					</tr>
				</thead>
				<tbody>
				</tbody>
			</table>
			<table width="822" cellspacing="0" cellpadding="0" border="0" style="border-collapse:
 collapse;table-layout:fixed;width:618pt">
 <colgroup><col width="86" style="mso-width-source:userset;mso-width-alt:3145;width:65pt">
 <col width="141" style="mso-width-source:userset;mso-width-alt:5156;width:106pt">
 <col width="135" style="mso-width-source:userset;mso-width-alt:4937;width:101pt">
 <col width="170" span="2" style="mso-width-source:userset;mso-width-alt:6217;
 width:128pt">
 <col width="120" style="mso-width-source:userset;mso-width-alt:4388;width:90pt">
 </colgroup><tbody>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" colspan="2" style="height:15.0pt">μ=100/24=4,166</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" colspan="2" style="height:15.0pt">λ=1/4,16666=0,240384615</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" colspan="2" style="height:15.0pt">Prueba de Chi
  Cuadrado</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="tablehead" style="height:15.75pt">Intervalos</td>
  <td class="tablehead">Frecuencia Observada</td>
  <td class="tablehead">Frecuencia Esperada</td>
  <td class="tablehead">((FO-FE)^2)/FE</td>
  <td class=""></td>
  <td class=""></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl705304" style="height:15.75pt;width:65pt">1-50</td>
  <td width="141" align="right" class="xl715304" style="border-left:none;width:106pt">62</td>
  <td align="right" class="xl725304">61,99997912</td>
  <td align="right" class="xl735304" style="border-left:none">7,03195E-12</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl655304" style="height:15.75pt;border-top:none;
  width:65pt">51 - 100</td>
  <td width="141" align="right" class="xl675304" style="border-top:none;border-left:
  none;width:106pt">8</td>
  <td align="right" class="xl685304" style="border-top:none">6,830747543</td>
  <td align="right" class="xl695304" style="border-top:none;border-left:none">0,20014666</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl655304" style="height:15.75pt;border-top:none;
  width:65pt">101 - 150</td>
  <td width="141" align="right" class="xl675304" style="border-top:none;border-left:
  none;width:106pt">8</td>
  <td align="right" class="xl685304" style="border-top:none">6,830747543</td>
  <td align="right" class="xl695304" style="border-top:none;border-left:none">0,20014666</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl655304" style="height:15.75pt;border-top:none;
  width:65pt">151 - 200</td>
  <td width="141" align="right" class="xl675304" style="border-top:none;border-left:
  none;width:106pt">6</td>
  <td align="right" class="xl685304" style="border-top:none">4,581710204</td>
  <td align="right" class="xl695304" style="border-top:none;border-left:none">0,439038232</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl655304" style="height:15.75pt;border-top:none;
  width:65pt">201 - 300</td>
  <td width="141" align="right" class="xl675304" style="border-top:none;border-left:
  none;width:106pt">8</td>
  <td align="right" class="xl685304" style="border-top:none">6,830747543</td>
  <td align="right" class="xl695304" style="border-top:none;border-left:none">0,20014666</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl655304" style="height:15.75pt;border-top:none;
  width:65pt">301 - 1200</td>
  <td width="141" align="right" class="xl675304" style="border-top:none;border-left:
  none;width:106pt">8</td>
  <td align="right" class="xl785304" style="border-top:none">6,830747543</td>
  <td align="right" class="xl795304" style="border-top:none;border-left:none">0,20014666</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt"></td>
  <td class="xl155304"></td>
  <td class="xl975304">Ʃ</td>
  <td align="right" class="xl955304">1,239624872</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" style="height:15.0pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" style="height:15.0pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" colspan="2" style="height:15.75pt">Grado de
  libertad</td>
  <td class="xl155304" colspan="2">chi tabla con una confianza del 95%</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt">V=24-1=23</td>
  <td class="xl155304"></td>
  <td align="right" class="xl955304">44,1814</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" style="height:15.0pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304" colspan="3">Al ser mayor el chi de tabla que el calculado,
  se acepta la hipotesis<span style="mso-spacerun:yes">&nbsp;</span></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" style="height:15.0pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl825304">Probabilidad de frecuencia</td>
  <td class="xl835304" colspan="2" style="border-right:1.0pt solid #8064A2">Probabilidad
  de frecuencia</td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="tablehead" style="height:15.75pt">Intervalos</td>
  <td class="tablehead">Frecuencia Observada</td>
  <td class="tablehead">Frecuencia Esperada</td>
  <td class="tablehead">observada acumulada</td>
  <td class="tablehead">esperada acumulada</td>
  <td class="tablehead">|P(Fo)ac - P(Fe)ac|</td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td width="86" height="20" class="xl895304" style="height:15.0pt;width:65pt">1-50</td>
  <td width="141" align="right" class="xl905304" style="border-left:none;width:106pt">0,62</td>
  <td align="right" class="xl915304" style="border-left:none">0,619999791</td>
  <td align="right" class="xl915304" style="border-left:none">0,62</td>
  <td align="right" class="xl915304" style="border-left:none">0,619999791</td>
  <td align="right" class="xl915304" style="border-left:none">2,08801E-07</td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td width="86" height="20" class="xl815304" style="height:15.0pt;border-top:none;
  width:65pt">51 - 100</td>
  <td width="141" align="right" class="xl815304" style="border-top:none;border-left:
  none;width:106pt">0,08</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,068307475</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,7</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,688307267</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,011692733</td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td width="86" height="20" class="xl815304" style="height:15.0pt;border-top:none;
  width:65pt">101 - 150</td>
  <td width="141" align="right" class="xl815304" style="border-top:none;border-left:
  none;width:106pt">0,08</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,068307475</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,78</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,756614742</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,023385258</td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td width="86" height="20" class="xl815304" style="height:15.0pt;border-top:none;
  width:65pt">151 - 200</td>
  <td width="141" align="right" class="xl815304" style="border-top:none;border-left:
  none;width:106pt">0,06</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,045817102</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,84</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,802431844</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,037568156</td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td width="86" height="20" class="xl815304" style="height:15.0pt;border-top:none;
  width:65pt">201 - 300</td>
  <td width="141" align="right" class="xl815304" style="border-top:none;border-left:
  none;width:106pt">0,08</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,068307475</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,92</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,87073932</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,04926068</td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td width="86" height="21" class="xl815304" style="height:15.75pt;border-top:none;
  width:65pt">301 - 1200</td>
  <td width="141" align="right" class="xl815304" style="border-top:none;border-left:
  none;width:106pt">0,08</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,068307475</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">1</td>
  <td align="right" class="xl885304" style="border-top:none;border-left:none">0,939046795</td>
  <td align="right" class="xl965304" style="border-top:none;border-left:none">0,060953205</td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt"></td>
  <td width="141" class="xl805304" style="width:106pt">&nbsp;</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304">MAXIMO</td>
  <td align="right" class="xl955304">0,060953205</td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" style="height:15.0pt"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" colspan="2" style="height:15.0pt">Como la muestra
  es mayor</td>
  <td class="xl155304" colspan="3">Al ser mayor el valor de ks, que el calculado
  tambien se acepta la hipotesis</td>
  <td class="xl155304"></td>
 </tr>
 <tr height="20" style="height:15.0pt">
  <td height="20" class="xl155304" colspan="2" style="height:15.0pt">a 35 usamos la
  formula<span style="mso-spacerun:yes">&nbsp;</span></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" class="xl155304" style="height:15.75pt">1,36/√100</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <tr height="21" style="height:15.75pt">
  <td height="21" align="right" class="xl955304" style="height:15.75pt">0,136</td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
  <td class="xl155304"></td>
 </tr>
 <!--[if supportMisalignedColumns]-->
 <tr height="0" style="display:none">
  <td width="86" style="width:65pt"></td>
  <td width="141" style="width:106pt"></td>
  <td width="135" style="width:101pt"></td>
  <td width="170" style="width:128pt"></td>
  <td width="170" style="width:128pt"></td>
  <td width="120" style="width:90pt"></td>
 </tr>
 <!--[endif]-->
</tbody></table>
		</div>
        
        <script src="http://code.jquery.com/jquery.js"></script>
        <script src="../vendors/bootstrap/js/bootstrap.min.js"></script>
        
	<script src="../vendors/highcharts/js/highcharts.js" type="text/javascript"></script>
        <script src="../vendors/highcharts/js/themes/grid.js" type="text/javascript"></script>
        <script src="../vendors/highcharts/js/modules/exporting.js"></script>
        <script type="text/javascript" src="js/funciones.js"></script>
        
        <script src="js/main.js"></script>
        
        
    </body>
</html>